import 'package:flutter/material.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBEngineer/YBBaseRouter/YBNavigator.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBEngineer/yb_custom_header/yb_custom_appbar.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBEngineer/yb_custom_header/yb_custom_header.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBEngineer/yb_custom_header/yb_custom_header_appbar.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBEngineer/yb_custom_header/yb_custom_statusstyle_header_appbar%E3%80%81.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/YBColor/YBColor.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/YBImageStyle/YBImageStyle.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/YBTextStyle/YBTextStyle.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBHelper/yb_chinese_text/yb_chinese_text.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBModule/YBHomePage/YBSubPage/yb_bangbanshi_gongweihui_subpage.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBModule/YBHomePage/YBSubPage/yb_bangbanshi_subpage.dart';


class YBBangBanShi extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
       child: Scaffold(
         appBar:AppBar(
           backgroundColor: YBColor.color1778FE,
           titleSpacing: 1.0,
           bottomOpacity:1.0,
           automaticallyImplyLeading: true,
           primary: true,
         ),
         body:CustomScrollView(
           slivers: [
             SliverPadding(
               padding:EdgeInsets.only(left: YBTextStyle.adapterSize20,right: YBTextStyle.adapterSize20,top: YBTextStyle.adapterSize16),
               sliver: SliverToBoxAdapter(
                 child: Image.asset(YBImageStyle.getImagePath("homePage_zhidingpintai"),fit: BoxFit.fitWidth,height: YBTextStyle.adapterSize100,),
               ),
             ),
             SliverPadding(
               padding:EdgeInsets.only(left: YBTextStyle.adapterSize20,right: YBTextStyle.adapterSize20,top: YBTextStyle.adapterSize16),
               sliver: SliverToBoxAdapter(
                 child:Container(
                   height: YBTextStyle.adapterSize148,
                   color: YBColor.white,
                   child: Column(
                     mainAxisAlignment: MainAxisAlignment.start,
                     crossAxisAlignment: CrossAxisAlignment.start,
                     children: [
                       Container(
                         child: Padding(
                           padding: EdgeInsets.only(left: YBTextStyle.adapterSize16,top: YBTextStyle.adapterSize16),
                           child: Text(YBChineseText.homeTextZhangShangMishuTitle,style: YBTextStyle.textStyle18181816Medium,),
                         ),
                       ),
                       Container(
                         height: YBTextStyle.adapterSize24,
                       ),
                       Container(
                         height: YBTextStyle.adapterSize80,
                         child: Row(
                           mainAxisAlignment: MainAxisAlignment.spaceAround,
                           crossAxisAlignment: CrossAxisAlignment.start,
                           children: [
                             Container(
                               child: InkWell(
                                 child: YBBangBanShiSubPage(imageStr: "bangbanshi_shangwumishu",titleStr: "商务秘书",),
                               ),
                             ),
                             Container(
                               child: InkWell(
                                 child: YBBangBanShiSubPage(imageStr: "bangbanshi_falvmishu",titleStr: "商务秘书",),
                               ),
                             ),
                             Container(
                               child: InkWell(
                                 child: YBBangBanShiSubPage(imageStr: "bangbanshi_xingzhengmishu",titleStr: "商务秘书",),
                               ),
                             ),
                           ],
                         ),
                       ),
                     ],
                   ),
                 ),
               ),
             ),
             SliverPadding(
               padding:EdgeInsets.only(left: YBTextStyle.adapterSize20,right: YBTextStyle.adapterSize20,top: YBTextStyle.adapterSize16),
               sliver: SliverToBoxAdapter(
                 child: Container(
                   decoration: BoxDecoration(
                     color: YBColor.white,
                     borderRadius: BorderRadius.circular(YBTextStyle.adapterSize8),
                   ),
                   child:Padding(
                     padding: EdgeInsets.only(left:YBTextStyle.adapterSize16,right: YBTextStyle.adapterSize16),
                     child: Container(
                       child: Column(
                         mainAxisAlignment: MainAxisAlignment.start,
                         crossAxisAlignment: CrossAxisAlignment.start,
                         children: [
                           Container(
                             child: Padding(
                               padding:EdgeInsets.only(top: YBTextStyle.adapterSize16),
                               child: Text(
                                 YBChineseText.homeTextGongWeiHuiFuWuTitle,
                                 style: YBTextStyle.textStyle18181816Medium,
                               ),
                             ),
                           ),
                           Container(
                             height: YBTextStyle.adapterSize26,
                           ),
                           Container(
                             child: InkWell(
                               child: YBBangBanShiGongWeiHuiSubPage(imageStr:"bangbanshi_gongchangzhihuiyuan",titleStr: YBChineseText.homeTextLvDouXinYongTitle,subTitleStr:YBChineseText.homeTextLvDouXinYongSubTitle,),
                               onTap: () async{
                                 YBNavigatorUtil.jump(context, '/baseWebView?type=2');
                               },
                             ),
                           ),
                           Container(
                             child: InkWell(
                               child: YBBangBanShiGongWeiHuiSubPage(imageStr:"bangbanshi_xinyongpingji",titleStr: YBChineseText.homeTextXinYongPingJiTitle,subTitleStr:YBChineseText.homeTextXinYongPingJiSubTitle,),
                               onTap: (){
                                 YBNavigatorUtil.jump(context, "/baseWebView?type=1");
                               },
                             ),
                           ),
                         ],
                       ),
                     ),
                   ),
                 ),
               ),
             ),
           ],
         )
       ),
    );
  }
}
